package com.bdqn.Service.Orders.impl;

import com.bdqn.Service.Orders.OrdersService;
import com.bdqn.entity.Orders;
import com.bdqn.mapper.Orders.OrdersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrdersImplService implements OrdersService {
    @Autowired
    OrdersMapper mapper;
    @Override
    public List<Orders> findAll(Orders ord,int page,int limit,String px) {
        return mapper.findAll(ord, page, limit,px);
    }

    @Override
    public List<Orders> findAll1(Orders ord, int page, int limit, String px) {
        return mapper.findAll1(ord, page, limit, px);
    }

    @Override
    public int count(Orders ord) {
        return mapper.count(ord);
    }

    @Override
    public int count1(Orders ord) {
        return mapper.count1(ord);
    }

    @Override
    public boolean Que(int id) {
        return mapper.Que(id);
    }

    @Override
    public boolean Del(int id) {
        return mapper.Del(id);
    }

    @Override
    public boolean Insert(List<Orders> orders) {
        return mapper.Insert(orders);
    }

    @Override
    public Orders findById(Orders ord) {
        return mapper.findById(ord);
    }

    @Override
    public List<Orders> findById1(Orders ord) {
        return mapper.findById1(ord);
    }

    @Override
    public boolean DelectWei() {
        return mapper.DelectWei();
    }

    @Override
    public boolean Update(Orders ord) {
        return mapper.Update(ord);
    }

    @Override
    public boolean UpdateIds(int[] ids) {
        return mapper.UpdateIds(ids);
    }

    @Override
    public List<Orders> SelByG(int id) {
        return mapper.SelByG(id);
    }

    @Override
    public boolean Update1(Orders orders) {
        return mapper.Update1(orders);
    }

    @Override
    public List<Orders> SelByEnqId(int id) {
        return mapper.SelByEnqId(id);
    }

    @Override
    public List<Orders> SelByContId(Integer id) {
        return mapper.SelByContId(id);
    }
}
